package com.ss.android.article.base.feature.subscribe.b;

import com.bytedance.common.utility.Logger;
import com.ss.android.account.b.OnAccountRefreshListener;
import com.ss.android.article.base.feature.subscribe.model.EntryItem;
import com.ss.android.article.base.feature.subscribe.model.SubscribeData;

final class d implements OnAccountRefreshListener {
    private final SubscribeManager a;

    d(SubscribeManager arg1) {
        this.a = arg1;

    }

    public final void onAccountRefresh(boolean arg6, int arg7) {
        if((arg6) && this.a.isLogin != this.a.mSpipe.isLogin) {
            if(Logger.debug()) {
                Logger.d("SubscribeManager", "login changed: " + this.a.mSpipe.isLogin);
            }

            EntryItem.clearAllSubscribeFlag();
            this.a.isLogin = this.a.mSpipe.isLogin;
            e v0 = this.a.c;
            ++v0.g;
            v0.d = false;
            v0.e = false;
            v0.f = 0;
            v0.i.clear();
            v0.j = null;
            if(v0.k) {
                v0.k = false;
            }

            v0.notifySubscribeDataChanged(SubscribeData.create(0));
            v0.a(4);
        }
    }
}

